package shared.highcharts.config

import java.lang.{Double => JDouble}

import dataclass.data

@data class Marker(
                    fillColor: Option[String],
                    lineWidth: Option[Double],
                    lineColor: Option[String],
                 )

object Marker {
  def apply(
             fillColor: String = null,
             lineWidth: JDouble = null,
             lineColor: String = null,
           ) = new Marker(
    Option(fillColor),
    Option(lineWidth).map(x => x: Double),
    Option(lineColor),
  )
}
